//
//  LGTextField.swift
//  LGMusic
//
//  Created by 梁尚嘉 on 2017/4/14.
//  Copyright © 2017年 LimeGah. All rights reserved.
//

import UIKit

class LGTextField: UITextField {


    override func leftViewRect(forBounds bounds: CGRect) -> CGRect {
        var iconRect = super.leftViewRect(forBounds: bounds)
        iconRect.origin.x += 15;
        return iconRect
    }

    override func textRect(forBounds bounds: CGRect) -> CGRect {
        return bounds.insetBy(dx: 45,dy: 0)
    }

    override func editingRect(forBounds bounds: CGRect) -> CGRect {
        return bounds.insetBy(dx: 45, dy: 0)
    }

}
